<template>
    <div class="container">
        <p class="oneP">专业服务优化体系</p>
        <p class="twoP">创建大客户数据库</p>
        <ul class="ulOne animation-box">
            <li  :class="{'topmove':liIndex==index}" v-for="(item,index) in arr1" :key="index">
                <div class="ulTwo" @mouseover="show(index)" @mouseout="recover()" :style="{background:'url('+item[4]+') no-repeat',backgroundSize:'100%'}" :class="{toTop:liIndex==index,toBottom:liIndex!=index}">
                    <img :src="item[0]">
                    <p style="font-weight:600;margin-top:30px;">{{item[1]}}</p>
                    <p style="font-weight:100;font-size:14px;margin-top:18px;">{{item[2]}}</p>
                    <p style="font-weight:100;font-size:14px;">{{item[3]}}</p>
                </div>
            </li>
        </ul>
    </div>
</template>
<script>
require("../../assets/css/p.css")
const img1 = require("../../assets/img/bigcustomer/42.png")
const img2 = require("../../assets/img/bigcustomer/45.png")
const img3 = require("../../assets/img/bigcustomer/46.png")
const img4 = require("../../assets/img/bigcustomer/48.png")
const img6 = require("../../assets/img/lyzw/17.png")
const img7 = require("../../assets/img/lyzw/19.png")
const img8 = require("../../assets/img/lyzw/21.png")
const img9 = require("../../assets/img/lyzw/23.png")
export default {
    data(){
        return {
            arr1:[
                [img1,"广告执行保证KPI","为客户提供专业数据支持","降低广告投放成本",img6],
                [img2,"免费媒体策划方案","第一阶段位提供行业通案","第二阶段位定制执行细案例",img7],
                [img3,"专项项目执行团队","策划、媒介、运营、设计等","各岗位专人专项，服务订单执行",img8],
                [img4,"全年24小时服务","每个客户配备项目经理","24小时响应及协调处理客户需求",img9],
            ],
            liIndex : -1,
        }
    },
    methods: {
        show(index) {
            this.liIndex = index
        },
        recover(){
            this.liIndex = -1
        }
    }
}
</script>
<style scoped>
.container{
    width:1200px;
    margin:0 auto;
    text-align: center;
    margin-top: 80px;
    overflow: hidden;
    margin-bottom: 80px;
}
.oneButton{
    width: 140px;
}
.ulOne{
    overflow: hidden;
    position:relative;
    padding-top:10px;
    padding-top:25px;
    margin-top: 55px;
    margin-bottom:80px;
}
.animation-box li{
  -webkit-transition: all 0.5s, opacity 0.5s;
  transition: all 0.5s, opacity 0.5s;
}
.ulOne p{
    font-size: 16px;
}
.ulOne>li {
    /* 33 */
  width: 275px;
  float: left;
  height: 300px;
  text-align: center;
  position: relative;
  margin-left: 25px;
}
.ulOne>li>div.toTop{
    margin-top: -10px;
}
.ulOne>li>div.toBottom{
    margin-top: 0px;
}
.ulOne>li:first-child{
    margin-left: 0px;
}
.ulTwo {
  width: 100%;
  height:300px;
  text-align: center;
  background: url("../../assets/img/二类电商/立即注册/010.png") center;
  box-shadow: 2px 2px 17px #ededed;
}
.ulTwo>img{
    margin-top: 60px;
}
.ulTwo>p:nth-child(2){
    margin-top: 60px;
}
.ulTwo>p:nth-child(3),.ulTwo>p:nth-child(4),.ulTwo>p:nth-child(5){
    margin-top: 10px;
}
.ulThree {
  width: 100%;
  height:300px;
  background: url("../../assets/img/二类电商/立即注册/011.png") center;
  position: absolute;
  top: 0px;
  left: 0;
  text-align: center;
}
.ulThree>div>img{
    margin-top: 60px;
}
.ulThree>img:nth-child(2){
    margin-top: 30px;
}
.ulThree>p:nth-child(3){
    margin-top: 25px;
} 
.ulThree>p:nth-child(4),.ulThree>p:nth-child(5),.ulThree>p:nth-child(6){
    margin-top: 10px;
}
.topmove{
    transform: translateY(-10px)  
}
</style>